package com.lcq.demo.common.converter;

import com.lcq.demo.entity.dto.ProductDTO;
import com.lcq.demo.entity.dto.ProductTypeDTO;
import com.lcq.demo.entity.po.Product;
import com.lcq.demo.entity.po.ProductType;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 240701005
 */
@Mapper
public interface ProductTypePOConverter {

    ProductTypePOConverter INSTANCE = Mappers.getMapper(ProductTypePOConverter.class);

    ProductTypeDTO convertPoToDto(ProductType productType);

    List<ProductTypeDTO> convertPoToDto(List<ProductType> productTypeList);

}
